#!/usr/local/bin/python3
#-*- coding:utf8 -*-
# Author Aaron 
# 2017-04-06 22:07:20
# 电位器
import RPi.GPIO as GPIO
import time

potpin = 3
GPIO.setmode(GPIO.BOARD)
GPIO.setup(potpin,GPIO.IN)
while True:
    val = GPIO.input(potpin)
    print("val :",val)
    time.sleep(0.2)
GPIO.cleanup()


